import React from "react";
import { NavBar, Icon } from 'antd-mobile';
import { HeaderWrap } from './style';
function Header(props) {
  let { title } = props;
    return <HeaderWrap> 
    <NavBar
      mode="dark"
      icon={<Icon type="left" />}
      onLeftClick={() => { window.history.back(-1); }}
    >{title}</NavBar>
    </HeaderWrap>
}
export default Header;
